.class Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;
.super Ljava/lang/Object;
.source "SideNavCategoryAdapter.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->getAppPromView(ILandroid/view/View;Ljava/util/HashMap;)Landroid/view/View;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

.field final synthetic val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;


# direct methods
.method constructor <init>(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V
    .registers 3
    .param p1, "this$0"    # Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    .prologue
    .line 326
    iput-object p1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    iput-object p2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .registers 7
    .param p1, "v"    # Landroid/view/View;

    .prologue
    .line 330
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    move-result-object v1

    const-string v2, "ClickSideMenuAppProm"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v4, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v4, v4, Lcom/brixd/niceapp/model/AppRecommendModel;->title:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, ""

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v1, v2, v3}, Lcom/umeng/analytics/MobclickAgent;->onEvent(Landroid/content/Context;Ljava/lang/String;Ljava/lang/String;)V

    .line 332
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/AppRecommendModel;->downloadType:Ljava/lang/String;

    const-string v2, "link_open"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_41

    .line 333
    new-instance v0, Lcom/brixd/niceapp/util/LinkHandler;

    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    # getter for: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->mActivity:Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;
    invoke-static {v1}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$200(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;)Lcom/brixd/niceapp/activity/AbsBaseSlidingMenuActivity;

    move-result-object v1

    invoke-direct {v0, v1}, Lcom/brixd/niceapp/util/LinkHandler;-><init>(Landroid/content/Context;)V

    .line 334
    .local v0, "linkHandler":Lcom/brixd/niceapp/util/LinkHandler;
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/AppRecommendModel;->linkUrl:Ljava/lang/String;

    invoke-virtual {v0, v1}, Lcom/brixd/niceapp/util/LinkHandler;->redirectUrl(Ljava/lang/String;)Lcom/brixd/niceapp/util/LinkHandler$RedirectResult;

    .line 341
    .end local v0    # "linkHandler":Lcom/brixd/niceapp/util/LinkHandler;
    :cond_40
    :goto_40
    return-void

    .line 335
    :cond_41
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/AppRecommendModel;->downloadType:Ljava/lang/String;

    const-string v2, "direct_download"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_55

    .line 336
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    # invokes: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->directDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$300(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V

    goto :goto_40

    .line 337
    :cond_55
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    iget-object v1, v1, Lcom/brixd/niceapp/model/AppRecommendModel;->downloadType:Ljava/lang/String;

    const-string v2, "appstore_download"

    invoke-virtual {v1, v2}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_40

    .line 338
    iget-object v1, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->this$0:Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;

    iget-object v2, p0, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter$6;->val$appRecommendModel:Lcom/brixd/niceapp/model/AppRecommendModel;

    # invokes: Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->appStoreDownload(Lcom/brixd/niceapp/model/AppRecommendModel;)V
    invoke-static {v1, v2}, Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;->access$400(Lcom/brixd/niceapp/activity/fragment/adapter/SideNavCategoryAdapter;Lcom/brixd/niceapp/model/AppRecommendModel;)V

    goto :goto_40
.end method
